import 'package:flutter/cupertino.dart';
import '../config/AppConst.dart';
import '../utils/SpUtils.dart';
class LanguageProvider extends ChangeNotifier {
  ///
 static String? _language;

  String? get language => _language;

  void changeMode(String language) async {
    _language = language;
    notifyListeners();
    SpUtils.getInstance()?.setString(AppConst.language, language);
  }
}

//新游戏
class NewGameProvider extends ChangeNotifier {
  void changeMode() async {
    notifyListeners();
  }
}
